package com.example.maax.vo;

import com.example.maax.entity.Device;
import lombok.Data;

@Data
public class DeviceReqVO {

    private Long userId;
    private String code;
    private String remark;

    public static Device convert(DeviceReqVO item) {
        if (item == null) {
            return null;
        }
        Device result = new Device();
        result.setUserId(item.getUserId());
        result.setCode(item.getCode());
        result.setRemark(item.getRemark());
        return result;
    }
}
